<?php
header('Content-Type: application/rss+xml');
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
global $db,$start;
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n";
if (empty($start)){
    $start=0;
}
$sql="select * from q_threads where _id>$start";
$result=$db->query($sql);
echo "<threads>";
while($row=$db->fetch_array($result)){
    extract($row);
    echo "<thread>\r\n";
    echo "<id>$_id</id><title>$title</title><content>$content</content>
    <createdby>$created_by</createdby><createdon>$created_on</createdon>
    <parent>$parent_thread</parent>\r\n";
    echo "</thread>\r\n";
}
echo "</threads>";
?>
